#include<bits/stdc++.h>
using namespace std;
const int N = 100001;

int n;
string s;
string s2;

int main()
{
    cin>>n;
    cin>>s;
    int cnt;
    int k;
    for(int i=1;i<=n;i++){
        s2 = s;
        cnt = 0;
        for(int j=0;j<n;j++){
            k = j+1;
            if(s2[j] == '?'){
                if(k<=i){
                    s2[j] = '0';
                }
                else{
                    s2[j] = s2[j-i];
                }
            }
            if(s2[j] == '1'){
                cnt++;
            }
        }
        cout<<cnt<<endl;
    }
    return 0;
}